package blackmamba.threads.runnable_enemy;
import java.awt.BorderLayout;
import java.awt.Component;
import java.awt.Container;
import java.awt.Dimension;
import java.awt.FlowLayout;
import java.awt.GridLayout;
import java.awt.LayoutManager;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.util.ArrayList;

import javax.swing.BoxLayout;
import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JSlider;
import javax.swing.JTextField;
import javax.swing.event.ChangeEvent;
import javax.swing.event.ChangeListener;

/**
 * Test semplice sulle presationi dei threads
 * @author Jancarlos
 *
 */
public class Test {
	

	public static void main(String[] args) {
		
		//##########
		// Numero threads
		int n = 102;
		//##########

		
		JFrame frame = new JFrame("Thread Test");
		
		JPanel mainPanel = new JPanel();
		mainPanel.setLayout( new BorderLayout() );
		frame.getContentPane().add(mainPanel);
		
		ThredsTestPanel threadsTestPanel = new ThredsTestPanel(n);
		mainPanel.add(threadsTestPanel);
		
		frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		frame.setSize(800, 330);
		//frame.pack();
		frame.setResizable(false);
		frame.setLocationRelativeTo(null);
		frame.setVisible(true);
		
	}
	
	
	
}
